<?php
$ids[] = "Sklad";
//$ids[] = "proiz";
$query = "where id in (". implode(", ", $ids) .")";
echo $query;
?>